Skip to content

chore(cloud-assembly-api): remove files that are now no longer used - #2060

Merged
rix0rrr merged 2 commits into
explorer_4_web_explorerfrom
explorer_5_remove_superseded
Oct 26, 2026
Merged

rix0rrr merged 2 commits into
explorer_4_web_explorerfrom
explorer_5_remove_superseded

Conversation

@rix0rrr

@rix0rrr rix0rrr commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The earlier PRs in this stack refactored the assembly loading API in cloud-assembly-api, and these files are no longer needed. Also gets rid of a now-unused dependency.

BREAKING CHANGE: this removes some exports that used to be there.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@rix0rrr
rix0rrr added this pull request to stack #2056 October 19, 2026 17:41
@github-actions github-actions Bot added the p2 label Oct 19, 2026
@rix0rrr
rix0rrr force-pushed the explorer_5_remove_superseded branch from 7a6fd57 to 24885d3 Compare October 19, 2026 17:42
@aws-cdk-automation
aws-cdk-automation requested a review from a team October 19, 2026 17:44
@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

  • packages/@aws-cdk/cloud-assembly-api/package.json
  • yarn.lock

@rix0rrr
rix0rrr deployed to no-approval October 19, 2026 17:45 — with GitHub Actions Active
@rix0rrr
rix0rrr deployed to no-approval October 19, 2026 17:45 — with GitHub Actions Active
@maintainer-for-aws

maintainer-for-aws Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Automated review

A maintainer will still review this — treat the notes below as a starting point.

📌 Commit dde0338

This chore PR removes two now-superseded modules from @aws-cdk/cloud-assembly-api — construct-tree.ts and template-ranges.ts (plus their tests) — along with the json-source-map dependency they alone used and the two matching barrel exports in lib/index.ts. The accompanying changes to package.json, .projen/deps.json, tsconfig.json, yarn.lock, and the regenerated THIRD_PARTY_LICENSES files are the mechanical downstream effects of that dependency removal. The deletion itself is clean: no in-repo code still imports the removed symbols. Two points are worth confirming before merge: that the dropped public exports were never a stable surface external consumers depend on, and that the committed lockfile matches a clean yarn install so an orphaned @types/json-source-map definition is not left behind.

🔴 0 blocking · 🟡 2 recommended · ⚪ 0 optional

Files with findings (2)
File Findings
packages/@aws-cdk/cloud-assembly-api/lib/index.ts 🟡 1
yarn.lock 🟡 1

Generated automatically. React 👍 or 👎 to tell us whether this review helped, so we can improve these reviews.

@maintainer-for-aws maintainer-for-aws Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review summary comment for the overview; the notes below are inline.

Comment on lines 21 to 22
export * from './bootstrap';
export * from './construct-tree';
export * from './template-ranges';
export * from './stack-trace';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Recommended — These two lines remove export * from './construct-tree' and export * from './template-ranges' from the barrel of @aws-cdk/cloud-assembly-api, a publicly published package (publishConfig.access: public). That drops exported symbols — buildConstructTree, buildConstructTreeAsync, ConstructIndex, ConstructTreeNode, resolveResourceRange, resolveResourceRanges, resolveLogicalIdAtOffset, indexTemplateRanges, OffsetRange, ResourceRanges, TemplateRanges — from a released surface. Since backwards compatibility is a stated principle for this repo (AGENTS.md#your-role), please confirm the removal is intentional and that no external programmatic consumer depends on these.

Suggested change: Confirm in the PR description that these recently-added exports were never intended as stable public API and that no external consumer relies on them. If any external-consumer risk exists, add a deprecation note or stage the removal rather than dropping the exports outright.

@codecov-commenter

codecov-commenter commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.08%. Comparing base (106137c) to head (dde0338).
⚠️ Report is 1 commits behind head on explorer_4_web_explorer.

Additional details and impacted files
@@                   Coverage Diff                    @@
##           explorer_4_web_explorer    #2060   +/-   ##
========================================================
  Coverage                    92.08%   92.08%           
========================================================
  Files                           83       83           
  Lines                        13246    13246           
  Branches                      1885     1886    +1     
========================================================
  Hits                         12197    12197           
  Misses                        1011     1011           
  Partials                        38       38           
Flag Coverage Δ
suite.unit 92.08% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rix0rrr
rix0rrr force-pushed the explorer_5_remove_superseded branch from 24885d3 to 8a0a915 Compare October 20, 2026 07:41
@rix0rrr
rix0rrr deployed to no-approval October 20, 2026 07:42 — with GitHub Actions Active

@maintainer-for-aws maintainer-for-aws Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review summary comment for the overview; the notes below are inline.

Comment thread yarn.lock
@@ -272,7 +271,6 @@ __metadata:
eslint-plugin-prettier: "npm:^4.2.5"
jest: "npm:^29.7.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Recommended — This removes the @types/json-source-map and json-source-map references from the @aws-cdk/cloud-assembly-api workspace entry, but the top-level package definition block for @types/json-source-map@npm:^0.6.0 (yarn.lock lines 4423-4428 on the PR head) is left in place with nothing referencing it anymore. A clean yarn install on this branch would prune that orphaned definition, so the committed lockfile does not match what the package manager would regenerate, which the repo's lockfile/self-mutation validation (AGENTS.md#projen--project-configuration) is designed to catch. The sibling json-source-map@npm:^0.6.1 definition is correctly retained because the published package still declares it.

Suggested change: Run yarn install at the repo root on this branch and commit the resulting yarn.lock, which should drop the orphaned @types/json-source-map@npm:^0.6.0 definition block.

@github-actions

Copy link
Copy Markdown
Contributor

Total lines changed 9831 is greater than 1000. Please consider breaking this PR down.

rix0rrr and others added 2 commits October 26, 2026 14:55
…mplate-ranges

`AssemblyIndex` now provides the construct tree and template ranges, so
the standalone `construct-tree.ts` and `template-ranges.ts` modules have
no remaining consumers in this repo: `cdk-explorer` reads ranges through
its own `lib/core/template-ranges.ts` and `toolkit-lib` has its own
`ConstructTreeNode` in `lib/api/tree.ts`.

BREAKING CHANGE: the `construct-tree` and `template-ranges` exports are
removed from `@aws-cdk/cloud-assembly-api`. Nothing in this repository
used them; external consumers should move to `AssemblyIndex`.

This also drops the `json-source-map` runtime dependency from
`cloud-assembly-api` (`cdk-explorer` keeps its own copy).
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

This branch was successfully deployed

1 active and 2 inactive (1 outdated) deployments
run-tests — dde03387 Deployed Oct 26, 2026 by aws-cdk-automation via integ_cli (cli-integ-tests, 24.19, 7) #7475
no-approval — dde03387 Deployed Oct 26, 2026 by aws-cdk-automation via prepare #7475
automation — 7a6fd572 Deployed Oct 19, 2026 by rix0rrr via Triage Pull Requests #2212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants